import Input from '../widget/input'
import Switch from '../widget/switch'
import { randomString } from '@/utils'
export function BasicOption() {
  return [
    { type: Input, option: { label: '标题', name: 'label', required: true }},
    { type: Input, option: { label: 'name', name: 'name', required: false, value: `A${randomString(8)}`, notice: '域名称,可用于关于数据的其他处理', tip: '如不清楚如何设置,请保持现状' }},
    { type: Input, option: { label: 'Placeholder', name: 'placeholder', description: '使用该属性的组件会生效' }},
    { type: Switch, option: { label: '是否必填', name: 'required', value: false, activetext: '是', inactivetext: '否' }},
    { type: Switch, option: { label: '是否禁用', name: 'disabled', value: false, activetext: '是', inactivetext: '否' }},
    { type: Input, option: { label: '非空提示', name: 'requiredErrorMsg', value: '必填选项不能为空', description: '当必填选项为空时的提示' }},
    { type: Input, option: { label: '底部提示', name: 'description', description: '在组件此处显示' }}
  ]
}
